package com.study.aop.theory.myaop;

/**
 * Aspect切面 = Advice增强逻辑 + Pointcut切入点
 *
 * @author: chenhs
 * @date: Created in 15:25 2019/12/8
 **/
public class Aspect {

    private Advice advice;

    private Pointcut pointcut;

    public Aspect(Advice advice, Pointcut pointcut) {
        this.advice = advice;
        this.pointcut = pointcut;
    }

    public Advice getAdvice() {
        return advice;
    }

    public void setAdvice(Advice advice) {
        this.advice = advice;
    }

    public Pointcut getPointcut() {
        return pointcut;
    }

    public void setPointcut(Pointcut pointcut) {
        this.pointcut = pointcut;
    }
}
